import { PageDTO } from '@/http/public.types.ts'
import { ArticleClassificationDetailVO } from '@/http/article-classification/article-classification.types.ts'
import { ArticleTagDetailVO } from '@/http/article-tag/article-tag.types.ts'

/**
 * 文章分页查询数据
 */
export interface ArticlePageDTO extends PageDTO {
  classificationId?: string
}

/**
 * 文章列表查询数据
 */
export interface ArticleListVO {
  articleClassification: ArticleClassificationDetailVO
  articleName: string
  articleTag: ArticleTagDetailVO
  author: string
  classificationId: string
  content: string
  deleted: number
  gmtCreate: string
  gmtModified: string
  id: string
  pic: string
  tagId: string
}

export interface ArticleWithClassificationVO {
  classificationId: string
  classificationName: string
  articleList: ArticleListVO[]
}
